-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32: allow HS USB endpoints and increase USB OTG_HS endpoints number #13816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@facchinm, thank you for your changes. |
Set as patch update (target update only) |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
#if (MBED_CONF_TARGET_USB_SPEED != USE_USB_OTG_HS) | ||
/* 1.25 kbytes */ | ||
MBED_ASSERT(total_bytes <= 1280); | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if this total_bytes calculation is really useful...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it can be avoided, there are a lot of other sanity checks in the endpoint creation phase
#if (MBED_CONF_TARGET_USB_SPEED == USE_USB_OTG_HS) | ||
{USB_EP_ATTR_ALLOW_ALL | USB_EP_ATTR_DIR_IN_AND_OUT, 0, 0}, | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this change can be the default configuration for all?
and then remove #if (MBED_CONF_TARGET_USB_SPEED == USE_USB_OTG_HS) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but I don't have enough hardware variety to test it 🙂
@facchinm Any update to answer questions from review above? |
@0xc0170 is any action still needed on my side since @jeromecoutant approved? |
38e7d11
to
f1ea281
Compare
Pull request has been modified.
CI restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
This is the first part of a PR series to support Arduino Portenta H7 .
The patchset has been split into independent PRs for an easier review.
This PR content:
This two commits can be squashed into one. The PR is independent from PORTENTA_H7 board so it can be mainlined before adding the new target
/cc @pennam @pnndra
Impact of changes
Changes are enabled if :
MBED_CONF_TARGET_USB_SPEED == USE_USB_OTG_HS
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@jeromecoutant